package com.example.lemonservice.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum DeviceStatusEnum {

    OPEN(0, "开启"),
    CLOSE(1, "关闭"),
    NORMAL(2, "正常"),
    ERROR(3, "异常"),;
    @EnumValue
    private Integer code;
    private String name;

    DeviceStatusEnum(Integer code, String name){
        this.code = code;
        this.name = name;
    }
}
